
/**
 * The main singleton of the ewhiteboard application.
 */
if ( ewhiteboard.Application == undefined ) 
{
	
	/**
	 * Creates a new Application.
	 */
	ewhiteboard.Application = function () 
	{
		
		asgard.APPLICATION.setGlobal(true) ;
		
		// Logger
				
		ewhiteboard.logging.Logger.initialize() ;
		
		// MVC
		
		ewhiteboard.application.ModelEngine.initialize() ;
		ewhiteboard.application.ControllerEngine.initialize() ;
		
	}

	/**
	 * static Main method.
	 */
	ewhiteboard.Application.main = function () /*Void*/ 
	{
		var runner /*Application*/ = new ewhiteboard.Application() ;
	}

	/**
	 * @extends vegas.core.CoreObject
	 */
	ewhiteboard.Application.extend( vegas.core.CoreObject ) ;

}